<template>
	<FormItem label="栏目2">
		<Input v-model="form.a" placeholder=""></Input>
		<Input v-model="form.b" placeholder=""></Input>
	</FormItem>
	<Row>
		<Button type="default" @click="onOk">确定</Button>
	</Row>
</template>
<script>
export default {
	props: ['other'],
	data() {
		return {
			form: {
				a: 0,
				b: 0
			}
		}
	},
	methods: {
		onOk() {
			this.$emit('update:other', this.form)
		}
	},
	mounted() {
		//初始化赋值
		this.form = Object.assign({}, this.other);
	}
}
</script>
<style lang="scss" scoped></style>